//
//  LocationManager.h
//  地图
//
//  Created by 陈聪豪 on 15/12/30.
//  Copyright © 2015年 CCH. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import "AddressInfo.h"

typedef NS_ENUM (NSInteger, LocManagerCallBackType)
{
    LocManagerCallBackType_Success     = 0,        //定位成功
    LocManagerCallBackType_Failed      = 1,        //定位失败
    LocManagerBackType_UnAvailable     = 2         //无法定位
};

typedef void(^LocManagerSucceed)(AddressInfo *);    //定位成功
typedef void(^LocManagerFailed)();                  //定位失败
typedef void(^LocManagerCanNotLocate)(void);        //无法定位
typedef void (^NotAllow)();                         //没有授权定位

@interface LocationManager : NSObject<CLLocationManagerDelegate>


//创建对象并开始定位
+(id)shareStartLocation;

@property (nonatomic,copy) LocManagerSucceed locManagerSucceed;
//定位成功
@property (nonatomic,copy) LocManagerFailed  locManagerFailed;
//定位失败
@property (nonatomic,copy) LocManagerCanNotLocate locManagerCanNotLocate;
//无法定位
@property(nonatomic,copy) NotAllow  notAllow;
//没有授权定位


@end
